import axios from '../axios'
/**
 *  banner模块
 * */ 
export const findPage = (data) => {
    return axios({
        url: '/cloud/appbanner/list',
        method: 'post',
        data
    })
}

// 详情查询
export const findbannerbyid = (data) => {
    return axios({
        url: '/cloud/appbanner/info/'+data.id,
        method: 'get',
        data
    })
}

// 添加
export const save = (data) => {
    return axios({
        url: '/cloud/appbanner/save',
        method: 'post',
        data
    })
}

// 修改
export const update = (data) => {
    return axios({
        url: '/cloud/appbanner/update',
        method: 'post',
        data
    })
}

// 删除
export const deletebanner = (data) => {
    return axios({
        url: '/cloud/appbanner/delete',
        method: 'post',
        data
    })
}

/**
 *  基础配置模块
 * */ 
export const findBasePage = (data) => {
    return axios({
        url: '/cloud/appconfig/list',
        method: 'post',
        data
    })
}
// 添加
export const savebaseconfig = (data) => {
    return axios({
        url: '/cloud/appconfig/save',
        method: 'post',
        data
    })
}

// 修改
export const updatebaseconfig = (data) => {
    return axios({
        url: '/cloud/appconfig/update',
        method: 'post',
        data
    })
}